package com.itcast.cn;

public class Demo1 {
    public static  void main(String[] args){
        System.out.print(12);
        for (int i = 0; i < 10; i++) {
            System.out.print(getSum(i));
        }
    }

    private static int getSum(int i) {
        int result = 0;
        for (int j = 0; j < i; j++) {
            result += j;
        }
        int  A = 10;
        return result;

    }
}
